'use strict'
Object.defineProperty(exports, '__esModule', { value: !0 }),
Object.defineProperty(exports, '$wuxCountDown', {
  enumerable: !0,
  get: function () {
    return _index.default
  }
}),
Object.defineProperty(exports, '$wuxCountUp', {
  enumerable: !0,
  get: function () {
    return _index2.default
  }
}),
(exports.$stopWuxLoader = exports.$stopWuxRefresher = exports.$startWuxRefresher = exports.$wuxCalendar = exports.$wuxSelect = exports.$wuxKeyBoard = exports.$wuxNotification = exports.$wuxGallery = exports.$wuxToptips = exports.$wuxForm = exports.$wuxDialog = exports.$wuxLoading = exports.$wuxToast = exports.$wuxBackdrop = exports.$wuxActionSheet = void 0)
var _index = _interopRequireDefault(require('./countdown/index'))

var _index2 = _interopRequireDefault(require('./countup/index'))
function _interopRequireDefault (e) {
  return e && e.__esModule ? e : { default: e }
}
var getCtx = function (e, t) {
  var r = (arguments.length > 1 && void 0 !== t
    ? t
    : getCurrentPages()[getCurrentPages().length - 1]
  ).selectComponent(e)
  if (!r) throw new Error('无法找到对应的组件，请按文档说明使用组件')
  return r
}

var $wuxActionSheet = function (e, t) {
  return getCtx(
    arguments.length > 0 && void 0 !== e ? e : '#wux-actionsheet',
    arguments.length > 1 ? t : void 0
  )
}
exports.$wuxActionSheet = $wuxActionSheet
var $wuxBackdrop = function (e, t) {
  return getCtx(
    arguments.length > 0 && void 0 !== e ? e : '#wux-backdrop',
    arguments.length > 1 ? t : void 0
  )
}
exports.$wuxBackdrop = $wuxBackdrop
var $wuxToast = function (e, t) {
  return getCtx(
    arguments.length > 0 && void 0 !== e ? e : '#wux-toast',
    arguments.length > 1 ? t : void 0
  )
}
exports.$wuxToast = $wuxToast
var $wuxLoading = function (e, t) {
  return getCtx(
    arguments.length > 0 && void 0 !== e ? e : '#wux-loading',
    arguments.length > 1 ? t : void 0
  )
}
exports.$wuxLoading = $wuxLoading
var $wuxDialog = function (e, t) {
  return getCtx(
    arguments.length > 0 && void 0 !== e ? e : '#wux-dialog',
    arguments.length > 1 ? t : void 0
  )
}
exports.$wuxDialog = $wuxDialog
var $wuxForm = function (e, t) {
  return getCtx(
    arguments.length > 0 && void 0 !== e ? e : '#wux-form',
    arguments.length > 1 ? t : void 0
  )
}
exports.$wuxForm = $wuxForm
var $wuxToptips = function (e, t) {
  return getCtx(
    arguments.length > 0 && void 0 !== e ? e : '#wux-toptips',
    arguments.length > 1 ? t : void 0
  )
}
exports.$wuxToptips = $wuxToptips
var $wuxGallery = function (e, t) {
  return getCtx(
    arguments.length > 0 && void 0 !== e ? e : '#wux-gallery',
    arguments.length > 1 ? t : void 0
  )
}
exports.$wuxGallery = $wuxGallery
var $wuxNotification = function (e, t) {
  return getCtx(
    arguments.length > 0 && void 0 !== e ? e : '#wux-notification',
    arguments.length > 1 ? t : void 0
  )
}
exports.$wuxNotification = $wuxNotification
var $wuxKeyBoard = function (e, t) {
  return getCtx(
    arguments.length > 0 && void 0 !== e ? e : '#wux-keyboard',
    arguments.length > 1 ? t : void 0
  )
}
exports.$wuxKeyBoard = $wuxKeyBoard
var $wuxSelect = function (e, t) {
  return getCtx(
    arguments.length > 0 && void 0 !== e ? e : '#wux-select',
    arguments.length > 1 ? t : void 0
  )
}
exports.$wuxSelect = $wuxSelect
var $wuxCalendar = function (e, t) {
  return getCtx(
    arguments.length > 0 && void 0 !== e ? e : '#wux-calendar',
    arguments.length > 1 ? t : void 0
  )
}
exports.$wuxCalendar = $wuxCalendar
var $startWuxRefresher = function (e, t) {
  return getCtx(
    arguments.length > 0 && void 0 !== e ? e : '#wux-refresher',
    arguments.length > 1 ? t : void 0
  ).triggerRefresh()
}
exports.$startWuxRefresher = $startWuxRefresher
var $stopWuxRefresher = function (e, t) {
  return getCtx(
    arguments.length > 0 && void 0 !== e ? e : '#wux-refresher',
    arguments.length > 1 ? t : void 0
  ).finishPullToRefresh()
}
exports.$stopWuxRefresher = $stopWuxRefresher
var $stopWuxLoader = function (e, t, r) {
  var o = arguments.length > 2 ? r : void 0
  return getCtx(
    arguments.length > 0 && void 0 !== e ? e : '#wux-refresher',
    arguments.length > 1 ? t : void 0
  ).finishLoadmore(o)
}
exports.$stopWuxLoader = $stopWuxLoader
